import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/admin/adminUser/getList',
    method: 'get',
    params,
  })
}

export function getRoleList() {
  return request({
    url: '/admin/adminGroup/getRoles',
    method: 'get',
  })
}

export function doEdit(data) {
  return request({
    url: '/admin/adminUser/doEdit',
    method: 'post',
    data,
  })
}

export function doEditPwd(data) {
  return request({
    url: '/admin/adminUser/doEditPwd',
    method: 'post',
    data,
  })
}

export function toResetPassword(data) {
  return request({
    url: '/admin/adminUser/resetPassword',
    method: 'post',
    data,
  })
}

export function doDelete(data) {
  return request({
    url: '/admin/adminUser/doDelete',
    method: 'post',
    data,
  })
}

export function changeStatus(data) {
  return request({
    url: '/admin/adminUser/changeStatus',
    method: 'post',
    data,
  })
}

export function changeService(data) {
  return request({
    url: '/admin/adminUser/changeService',
    method: 'post',
    data,
  })
}

export function getService(data) {
  return request({
    url: '/admin/adminUser/getService',
    method: 'get',
    data,
  })
}
